package com.ruoyi.qiushi.mapper.equipment;

import com.ruoyi.qiushi.domain.equipment.QiushiDevice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备列Mapper接口
 *
 * @author ruoyi
 * @date 2023-12-22
 */
public interface QiushiDeviceMapper {

    public int unbind(Long id);

    public QiushiDevice selectQiushiDeviceByDeviceNo(String deviceNo);

    /**
     * 查询设备列
     *
     * @param id 设备列主键
     * @return 设备列
     */
    public QiushiDevice selectQiushiDeviceById(Long id);

    /**
     * 查询设备列列表
     *
     * @param qiushiDevice 设备列
     * @return 设备列集合
     */
    public List<QiushiDevice> selectQiushiDeviceList(QiushiDevice qiushiDevice);

    public List<QiushiDevice> selectReportDevice();

    public QiushiDevice getDeviceByDeviceNo(@Param("deviceNo") String deviceNo);

    /**
     * 新增设备列
     *
     * @param qiushiDevice 设备列
     * @return 结果
     */
    public int insertQiushiDevice(QiushiDevice qiushiDevice);

    /**
     * 修改设备列
     *
     * @param qiushiDevice 设备列
     * @return 结果
     */
    public int updateQiushiDevice(QiushiDevice qiushiDevice);

    /**
     * 删除设备列
     *
     * @param id 设备列主键
     * @return 结果
     */
    public int deleteQiushiDeviceById(Long id);
}
